package map_set.nowcoder.easy;

import java.util.Scanner;

/**
 * @author bruin_du
 * @description 乒乓球筐
 * @date 2022/7/7 17:25
 **/
public class TableTennisBasket {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()) {
            String strA = in.next();
            String strB = in.next();
            if(strA == null || strB == null) {
                System.out.println("No");
                continue;
            }
            if(strA.length() < strB.length()) {
                System.out.println("No");
            }else {
                char[] arrA = strA.toCharArray();
                char[] arrB = strB.toCharArray();
                int[] dicA = new int[26];
                int[] dicB = new int[26];
                for (char ch : arrA) {
                    dicA[ch - 'A']++;
                }
                for (char ch : arrB) {
                    dicB[ch - 'A']++;
                }
                boolean flag = false;
                for (int i = 0; i < 26; i++) {
                    if(dicA[i] < dicB[i]) {
                        System.out.println("No");
                        flag = true;
                        break;
                    }
                }
                if(!flag) {
                    System.out.println("Yes");
                }
            }
        }
    }
}
